//
//  PKRequestManager.h
//  Pianke
//
//  Created by lanou on 15/12/22.
//  Copyright © 2015年 Huang. All rights reserved.
//

#import <Foundation/Foundation.h>

// 传值block
typedef void(^Finish)(NSDictionary *dataDic);
// 错误信息block
typedef void(^Error)(NSError *error);


// 枚举请求类型
typedef NS_ENUM(NSInteger, RequestType) {
    POST,
    GET
};

@interface PKRequestManager : NSObject
// 外部进行数据请求调用的方法
+ (void)requestWithUrlString:(NSString *)urlString parDic:(NSDictionary *)parDic method:(RequestType)method finish:(Finish)finish error:(Error)error;

@end
